<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/common.html::common_css">
</head>
<script type="text/javascript" th:src="@{/static/js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/jquery-3.1.1.js}"></script>
<script type="text/javascript" th:src="@{/static/js/sturegister.js}"></script>
<body>
<div class="page login-page">
    <div class="container">
        <div class="form-outer text-center d-flex align-items-center">
            <div class="form-inner">
                <div class="logo text-uppercase"><span>账号</span><strong class="text-primary">注册</strong></div>
                <p style="padding-left: 90px;padding-right: 90px">欢迎使用本系统，请认真填写以下信息注册您的个人账户</p>
                <form id="registerform" class="text-left form-validate" th:action="@{/student/student_login.html}"
                      method="post">
                    <div class="form-group-material">
                        <input id="registerusername" type="text" style="background-color: #fff !important;"
                               name="registerUsername" class="input-material">
                        <label for="registerusername" class="label-material">姓名</label>
                        <div class="invalid-feedback">请输入姓名</div>
                    </div>
                    <div class="form-group-material">
                        <label for="registerapartment" class="label-material" style="color: #aaaaaa;">部门</label>
                        <select  id="registerapartment" name="registerApartment" class="form-control">
                            <option></option>
                            <option th:each="apartments:${apartments}" th:value="${apartments.apartmentid}" th:text="${apartments.apartmentname}"></option>
                        </select>
                        <div class="invalid-feedback">请选择部门</div>
                    </div>
                    <div class="form-group terms-conditions text-center">
                        <input name="registerGender" class="form-control-custom is-invalid" id="registerman"
                               aria-invalid="true" aria-describedby="registerAgree-error" required="" type="radio"
                               value="1" data-msg="请选择你的性别" checked="checked">
                        <label for="registerman">男</label>
                        <input name="registerGender" class="form-control-custom is-invalid" data-msg="请选择你的性别"
                               aria-invalid="true" aria-describedby="registerAgree-error" required="" type="radio"
                               id="registerwoman"
                               value="0">
                        <label for="registerwoman">女</label>
                    </div>
                    <div class="form-group-material">
                        <input id="registernumber" type="text" style="background-color: #fff !important;"
                               name="registerNumber" class="input-material">
                        <label for="registernumber" class="label-material">考生号</label>
                        <span id="usernameInfo"></span>
                    </div>
                    <div class="form-group-material">
                        <input id="registerpassword" type="password" name="registerPassword" class="input-material">
                        <label for="registerpassword" class="label-material">密码</label>
                        <div class="invalid-feedback">密码不能为空</div>
                    </div>
                    <div class="form-group-material">
                        <input id="registerrepassword" type="password" name="registerRePassword" class="input-material">
                        <label for="registerrepassword" class="label-material">确认密码</label>
                        <div class="invalid-feedback">密码不一致</div>
                    </div>
                    <p style="color:red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                    <div class="form-group text-center">
                        <input style="width: 100%" id="register" type="submit" value="注册" class="btn btn-primary">
                    </div>
                </form>
                <small>已有账号?</small>
                <a th:href="@{/student/student_login.html}" class="signup">登录</a>
            </div>
            <div class="copyrights text-center">
                <p>Design by Bootstrapious</p>

            </div>
        </div>
    </div>
</div>
</div>
<div th:replace="common/common.html::common_js">
</div>
</body>
</html>